<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<link href="__STATIC__admin/css/admin-min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="__STATIC__admin/css/admin.css" />
<link href="__STATIC__admin/iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="__STATIC__admin/css/icheck/icheck.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__admin/css/skin/default/skin.css" id="skin" />
<link href="__STATIC__admin/css/admin-style.css" rel="stylesheet" type="text/css" />

<link href="__STATIC__admin/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
	<span class="c-gray en">&gt;</span>
    <a href="{:U('admin/links/index')}">友情链接管理</a>
	<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container container">
	<form action="" method="post" class="form form-horizontal" id="form" enctype="multipart/form-data">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="width: 30%;" value="" placeholder="" id="" name="name">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>url地址：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="width: 30%;" value="" placeholder="" id="" name="url">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>是否显示：</label>
			<div class="formControls col-xs-8 col-sm-9" style="width: 30%;"> <span class="select-box">
				<select name="isshow" class="select">
					<option value="1">显示</option>
					<option value="0">隐藏</option>
				</select>
				</span> </div>
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">logo：</label>
			<div class="formControls col-xs-8 col-sm-9">
                <input type="file" name="logo" />
            </div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">联系方式：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="" placeholder="" id="" name="contact">
			</div>
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">介绍：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<textarea name="introduce" cols="" rows="" class="textarea" placeholder="" datatype="*10-100" dragonfly="true" nullmsg="备注不能为空！" onkeyup="textarealength(this,200)"></textarea>
				<p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
			</div>
		</div>


		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存提交</button>
			</div>
		</div>
	</form>
</div>


<script type="text/javascript" src="__STATIC__admin/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__jquery.validation/1.14.0/jquery.validate.min.js"></script>
<script type="text/javascript" src="__STATIC__jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__STATIC__jquery.validation/1.14.0/messages_zh.min.js"></script>
<script>
	$(function(){

		$("#form").validate({
			rules: {
				name: "required",
				url: "required",
			},
			messages: {
				name: "名称不能为空",
				url: "url不能为空",
			}
		});

	})
</script>


</body>
</html>